package com.groupfive.feign.client;


import com.groupfive.common.Result;
import com.groupfive.feign.config.FeignClientConfiguration;
import org.springframework.cloud.openfeign.FeignClient;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "dept-service", configuration = FeignClientConfiguration.class)
public interface DeptClient {
    @GetMapping("/dept/selectAll")
    Result selectAll();

    @GetMapping("/dept/selectById/{id}")
    Result selectById(@PathVariable("id")Long id);

    @GetMapping("/dept/test")
    void test(@RequestParam String e);
}
